package com.qf.controller;

import com.qf.service.ZhangSanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * 张三发出事务
 * @author lixu
 */
@RestController
@RequestMapping("/zs")
public class ZhanSanController {

    @Autowired
    private ZhangSanService zhangSanService;
    /**
     * 转钱
     */
    @GetMapping("/money")
    public String money(){

        zhangSanService.money();

        return "OK";
    }
}
